package com.mobclick.android;

import android.content.Context;
import android.util.Log;
import org.json.JSONObject;

final class l
  implements Runnable
{
  private static final Object a = new Object();
  private MobclickAgent b = MobclickAgent.a();
  private Context c;
  private JSONObject d;

  l(MobclickAgent paramMobclickAgent, Context paramContext, JSONObject paramJSONObject)
  {
    this.c = paramContext;
    this.d = paramJSONObject;
  }

  public void run()
  {
    try
    {
      if (this.d.getString("type").equals("update"))
        MobclickAgent.a(this.b, this.c, this.d);
      else if (this.d.getString("type").equals("online_config"))
        MobclickAgent.b(this.b, this.c, this.d);
    }
    catch (Exception localException)
    {
      Log.e("MobclickAgent", "Exception occurred in ReportMessageHandler");
      localException.printStackTrace();
      return;
      synchronized (a)
      {
        MobclickAgent.c(this.b, this.c, this.d);
      }
    }
  }
}